Skip to content

Updating Go sdk to include group_by at dashboard level#979

Draft
mawasthy-lgtm wants to merge 1 commit into
linode:mainfrom
mawasthy-lgtm:add-group-by-to-monitor-dashboard
Draft

Updating Go sdk to include group_by at dashboard level#979
mawasthy-lgtm wants to merge 1 commit into
linode:mainfrom
mawasthy-lgtm:add-group-by-to-monitor-dashboard

Conversation

@mawasthy-lgtm
Copy link
Copy Markdown

@mawasthy-lgtm mawasthy-lgtm commented May 27, 2026

Updating Go sdk to include group_by at dashboard level

✔️ How to Test
How do I run the relevant unit/integration tests?

Prerequisites
Go 1.19+ installed
Valid Linode API token with monitor permissions
Export LINODE_TOKEN environment variable for integration tests

Run all monitor alert definition unit tests:
UNIT TEST:
go test ./test/unit -run "..MonitorDashboard.." -v

Expected Output:

✅ TestListMonitorDashboards
✅ TestListMonitorDashboardsByID
✅ TestListMonitorDashboardsByServiceType

INTEGRATION TEST:
export LINODE_TOKEN="your-linode-api-token"
go test ./test/integration -run "TestMonitorDashboards_Get_smoke" -v

Test Coverage:

List Monitor Dashboards: Verifies listing all monitor dashboards returns correct data and structure.
List Monitor Dashboards By ID: Verifies fetching a single monitor dashboard by ID returns the expected dashboard.
List Monitor Dashboards By Service: Verifies listing dashboards filtered by service type returns the correct dashboards.

📷 Preview
If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant